/**
 * DrawCommand.java
 *
 * Provider: CoderDream's Studio
 *
 * History
 *	Date(DD/MM/YYYY)    Author          Description
 * ----------------------------------------------------------------------------
 *	Nov 5, 2007		CoderDream		Created
 */
package com.coderdream.chapter22.command.sample.drawer;

import java.awt.Point;

import com.coderdream.chapter22.command.sample.command.Command;

/**
 * <pre>
 * DrawCommand.java
 * </pre>
 * 
 */
public class DrawCommand implements Command {

	// Draw Object
	protected Drawable drawable;
	// Draw Position
	private Point position;

	public DrawCommand(Drawable drawable, Point position) {
		this.drawable = drawable;
		this.position = position;
	}

	/**
	 * Execute
	 */
	public void execute() {
		drawable.draw(position.x, position.y);
	}

}
